﻿syntax = "proto3";

option csharp_namespace = "@Model.NameSpaceName";

package greet;

// The greeting service definition.
service @Model.ClassName {
  // Sends a greeting
@foreach (var methodItem in Model.Methods)
{
    var rpcParam = methodItem.IsHasParameters ? "google.protobuf.Empty" : methodItem.MethodName + "Request";
    var serviceTxt = "rpc " + methodItem.MethodName + "(" + rpcParam + ") returns (" + methodItem.MethodName + "Reply);";
    @serviceTxt;

    <text>Name: @methodItem.MethodName</text>


}
}
